//
//  GHUserModel.swift
//  GHSwiftProject
//
//  Created by Guanghui Liao on 4/5/18.
//  Copyright © 2018 liaoworking. All rights reserved.
//

import UIKit
class GHUserModel: NSObject,NSCoding  {
    func encode(with aCoder: NSCoder) {
        aCoder.encode(name,forKey:"Name")
        aCoder.encode(sex,forKey:"Sex")
        aCoder.encode(uid,forKey:"Uid")

    }
    
    required init?(coder aDecoder: NSCoder) {
        self.name = (aDecoder.decodeObject(forKey: "Name") as? String)
        self.sex = (aDecoder.decodeObject(forKey: "Sex") as? String)
        self.uid = (aDecoder.decodeObject(forKey: "Uid") as? String)

    }
    
    
    var name:  String?
    var sex: String?
    var uid: String?
    
    override init() {
        super.init()
    }
    
}
